<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>.:: Cursultoria ::.</title> 
<script type="text/javascript" src="<?= site_url() ?>assets/ivan/js/jquery.js"></script>
        <!-- Kit IU (Estilos e Fontes) -->
        <link rel="stylesheet" type="text/css" href="<?= site_url() ?>assets/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="<?= site_url() ?>assets/locastyle.css">
        <script type="text/javascript" src="<?= site_url() ?>assets/locastyle.js"></script>
        <script type="text/javascript" src="<?= site_url() ?>assets/bootstrap.js"></script>
        
        <script type="text/javascript" src="<?= site_url() ?>assets/ivan/js/download.js"></script>
        

        <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=Roboto:400,300,500,700,900' rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,700' rel='stylesheet' type='text/css'>
    </head>

    <body class="colorLightBlue">
        <header id="header" role="banner">

            <div class="limit">


                <h1 class="serviceName"><a href="/"><img src="<?= site_url() ?>assets/img/logo_painel/cursultoria.png" /></a></h1>
<!--                <div class="infoLogin">
                    Acessando com Identificador
                    <div class="btn-group">
                        <a href="#" class="identNumber dropdown-toggle" tabindex="2" data-toggle="dropdown">28424</a>
                        <div class="listIdent dropdown-menu">
                            <ul>
                                <li>
                                    <strong><a href="/accounts/1/change" tabindex="2">28424</a> </strong>
                                    <span>Gateway 01</span>
                                </li>
                                <li>
                                    <strong><a href="/accounts/2/change" tabindex="2">/accounts/2/change</a> </strong>
                                    <span>teste</span>
                                </li>
                            </ul>
                            <a href="/accounts" class="lnkArrow" tabindex="2">Ver todas</a>
                        </div>
                    </div>
                    <span class="accountName">Nome da conta: <strong>Gateway 01</strong></span>
                </div>-->
            </div>
            <menu id="menuPrincipal" role="navigation">
                <ul>
                    <li ><a href="<?= base_url() ?>aluno" class="ico-user" tabindex="2" role="menuitem">Área do Aluno</a></li>
                    <li><a href="<?php echo base_url() ?>projetos" tabindex="2" role="menuitem">Meus Cursos</a></li>
                    <li><a href="<?= base_url() ?>aluno/mapa" tabindex="2" role="menuitem">Mapa Gerencial</a></li>
                    <li class="selected"><a href="#" tabindex="2" role="menuitem">Material</a></li>
                    <li class="btMenu"><a href="<?= base_url()?>aluno/logout" tabindex="2" role="menuitem">Sair</a></li>
                    <!--<li class="btMenu"><a href="#" tabindex="2" role="menuitem">Configurações</a></li>-->
                </ul>
            </menu>
        </header>
        <!-- Fim Header -->

        <div id="main">
            <div class="limit">
                <ul class="breadcrumb">
                    <li><a href="<?= site_url();?>">Página inicial</a></li>
                    <li>Material do Aluno</li>
                </ul>
                
                <div class="row">

                    <div class="span12">



                        <div class="boxGray" role="region">
                            <h2 class="titleContent" role="presentation">Meus Materiais</h2><br>
                            <div class="msg"></div>
                            <table class="table-striped table-bordered table">
                                <tr><th>Ciclo</th><th>Disciplina</th><th>Material</th><th>Baixar/visualizar</th></tr>
                                <?php 
                                if ($materiais){
                                foreach ($materiais as $material) { ?>
                                <tr>
                                    <td>Ciclo <?=$material['CICLO']?></td>
                                    <td><?=$material['DISCIPLINA']?></td>
                                    <td><?=$material['NOME']?></td>
                                    <?php if($material['INTERNO']==1){ ?>
                                    <td><a class="download" href="<?= base_url()?>admin/material/download/<?=$material['LINK']?>" arquivo="<?=$material['LINK']?>"><i class="icon-download-alt"></i> <?=$material['LINK']?></a></td></tr>
                                    <?php }else{ ?>
                                <td><a href="<?=prep_url($material['LINK'])?>" target="blank"><i class="icon-download-alt"></i> <?=$material['DESCRICAO']?></a></td></tr>
                                    <?php }}
                                }else{ ?>
                            <tr><td colspan="5">Nenhum material disponível</td></tr>
                                <?php }?>
                            </table>


                        </div>  

                        <?php $this->load->view('central/noticias') ?>



                    </div>
<!--                    <div class="span4">
                        <aside class="sidebar" role="complementary">
                            <section class="sideBox">
                                <h1 class="titSide">Dados do Aluno</h1>
                                <div class="boxSidebarTitle"><i class="ico-user-star"></i></div>
                                <div class="innerSideBox boxWhite">
                                    <h6>Nome</h6>
                                    <p><strong><?= $cadastro->NOME_COMPLETO ?></strong></p>

                                    <hr>

                                    <h6>E-mail</h6>
                                    <p><strong><?= $cadastro->EMAIL ?></strong></p>
                                    <a class="edit-account-name lnkArrow" data-toggle="modal" data-target="#modalEditarNome" href="/accounts/1/edit_name">Alterar dados de cadastro</a>

                                </div>
                            </section>

                            <section class="sideBox">
                        <h1 class="titSide" style="font-size: 16px">Tempo e Velocidadade</h1>
                        <div class="boxSidebarTitle"><i class="ico-user-star"></i></div>
                        <div class="innerSideBox boxWhite">
                             <?php if ($info_tempo){?>
                            <h6>Tempo Disponível</h6>
                           
                            <p><strong><?= $info_tempo->TEMPO_DISPONIVEL ?></strong>Hs/semana</p>

                            <hr>

                            <h6>Velocidade</h6>
                            <p><strong><?= $info_tempo->VELOCIDADE/60 ?></strong>min/página</p>
                            <a href="hora_estudo" class="edit-account-name lnkArrow"  >Alterar Velocidade e tempo disponível</a>
                             <?php  }else{ ?>
                            <h6>Aviso</h6><br>
                                <p>Sua velocidade e tempo ainda não foram preenchidos, clique no link abaixo para alterar tempo de leitura e velocidade de leitura</p>
                                <a href="hora_estudo" class="edit-account-name lnkArrow">Alterar Velocidade e tempo disponível</a>
                                
                             <?php } ?>
                            
                        </div>
                    </section>



                            <section class="sideBox">
                        <h1 class="titSide">Ciclos realizados</h1>
                        <div class="boxSidebarTitle"><i class="ico-money"></i></div>
                        <div class="innerSideBox active-settings">
                            <div style="text-align:center; font-size:22px;">
                                <b><font color="#CC0000"> <?=$qtdCiclo ?> </font></b><br>ciclos concluidos
                            </div>
                            <a href="<?php echo site_url()?>projetos/atualizarCicloUsuario" class="lnkArrow">Ir para projetos</a>
                        </div>
                    </section>
                            <section class="sideBox">
                        <div class="boxSidebarTitle"><i class="cmicon-help">?</i></div>
                        <h1 class="titSide">Ajuda e Suporte </h1>
                        <div class="innerSideBox">
                            <ul class="listWhite">
                                <li><a href="#" class="ico-right-open">Dicas de Utilização<span class="ico-link-out"></span></a></li>
                                <li><a href="#" class="ico-right-open">Demostração em Video<span class="ico-link-out"></span></a></li>
                                <li><a href="#" class="ico-right-open">FAQ<span class="ico-link-out"></span></a></li>
                            </ul>
                        </div>
                    </section>
                        </aside>
                    </div>-->
<?php $this->load->view('central/barraLateral') ?>  


                </div><!-- FIM ROW -->

            </div><!-- FIM LIMITE -->


            <!-- Rodapé -->
            <?php $this->load->view('central/rodape') ?>
    </body>
</html>




